package cn.sendto.rowmapper.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import cn.sendto.model.ResidentInfoModel;
import cn.sendto.rowmapper.IRowMapper;

public class ResidentInfoMapper implements IRowMapper<ResidentInfoModel>{

	@Override
	public ResidentInfoModel rowMapper(ResultSet rs) throws SQLException {
		ResidentInfoModel rim = new ResidentInfoModel();
		rim.setResidentId(rs.getInt("residentid"));
		rim.setUserName(rs.getString("username"));
		rim.setUserPass(rs.getString("userpass"));
		rim.setName(rs.getString("name"));
		rim.setTellphone(rs.getString("tellphone"));
		return rim;
	}

}
